package com.frank.big.feignClient;

import com.frank.big.dto.BidataRequestDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 小石潭记
 * @date 2020/10/23 10:20
 * @Description: ${todo}
 */
@FeignClient(
        name = "BidataOnlineFeign",
        url = "https://testapi.big.com.cn/",
        configuration = BidataOnlineFeignConfig.class)
public interface BidataOnlineFeignClient {

    //对应的服务里的接口地址，及请求方式
    @RequestMapping(value = "/entinfo", method = RequestMethod.GET,
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    Object getEnterpriseInfo(@SpringQueryMap BidataRequestDTO bidataRequestDTO);

}
